package lab4_1;

public class Computations {
	private double x = 2.00;
	private double y = 1.10;
	private float  a = 2.00f;
	private float  b = 1.10f;
	
	public Computations(){
	}
	
	public Computations(double x_in, double y_in){
		x = x_in; y = y_in;
	}
	
	public Computations(float a_in, float b_in){
		a = a_in; b = b_in;
	}

	/**
	 * compute1
	 * @return x - y
	 */
	public double compute1(){
		return x - y;
	}
	
	/**
	 * compute2
	 * @return a - b
	 */
	public float compute2(){
		return a - b;
	}
	
	/**
	 * divide1
	 * @return x/y
	 */
	public double divide1(){
		return x / y;
	}
	
	/**
	 * divide2
	 * @return a/b
	 */
	public float divide2(){
		return a / b;
	}

	/**
	 * getX
	 * @return the x
	 */
	public double getX() {
		return x;
	}

	/**
	 * setX
	 * @param x the x to set
	 */
	public void setX(double x) {
		this.x = x;
	}

	/**
	 * getY
	 * @return the y
	 */
	public double getY() {
		return y;
	}

	/**
	 * setY
	 * @param y the y to set
	 */
	public void setY(double y) {
		this.y = y;
	}

	/**
	 * getA
	 * @return the a
	 */
	public float getA() {
		return a;
	}

	/**
	 * setA
	 * @param a the a to set
	 */
	public void setA(float a) {
		this.a = a;
	}

	/**
	 * getB
	 * @return the b
	 */
	public float getB() {
		return b;
	}

	/**
	 * setB
	 * @param b the b to set
	 */
	public void setB(float b) {
		this.b = b;
	}

	public  static final double MAXDOUBLE = Double.MAX_VALUE;
	public  static final double MINDOUBLE = Double.MIN_VALUE;
	
	/**
	 * getMaxdouble
	 * @return the maxdouble
	 */
	public static double getMaxdouble() {
		return MAXDOUBLE;
	}

	/**
	 * getMindouble
	 * @return the mindouble
	 */
	public static double getMindouble() {
		return MINDOUBLE;
	}
}